package com.sh.factory;

import com.sh.service.IEmployee;
import com.sh.service.impl.IEmployeeImpl;

/**
 * @Auther: sh
 * @Version 1.0
 * @Description:
 */
public class EmployeeFactory {
    private static IEmployee employee;

    public static IEmployee getInstance() {
        if (employee == null) {
            synchronized (EmployeeFactory.class) {
                if (employee == null) {
                    employee = new IEmployeeImpl();
                }
            }
        }
        return employee;
    }

}

